#include <iostream>

using namespace std;

class Animal
{
public:
	int x;
	int y;
	void show()
	{
		cout<<"x:  "<<x<<"y:   "<<y<<endl;
	}
};


int main()
{
	int Animal::*p;
	Animal s;
	p=&Animal::x;
	s.*p=10;
	p=&Animal::y;
	s.*p=20;
	s.show(); 
}